package com.itheima.logback;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author Anomaly
 * @date 2023/2/6 22:20
 */
public class Test {
    //创建Logback日志对象
    public static final Logger LOGGER = LoggerFactory.getLogger("Test.class");

    public static void main(String[] args) {
        try {
            LOGGER.debug("debug。。");
            LOGGER.info("info、、、");
            LOGGER.trace("a=" + 10);
            System.out.println(10 / 0);
        } catch (Exception e) {
            e.printStackTrace();
            LOGGER.error("功能出现异常" + e);
        }
    }
}
